package pojo;

/**
 * 商品实体类
 */
public class Goods {
    private Long id;                //商品id
    private String goodsNumber;     //商品编号
    private String goodsName;       //商品名称
    private String goodsCode;       //商品条码
    private String providerNumber;  //对应供应商编号
    private Long warehouseId;       //默认仓库
    private String unit;            //单位
    private Long sock;              //库存
    private Double price;           //商品单价
    private String remark;          //商品备注
    private Integer status;         //商品状态

    public Goods(Long id, String goodsNumber, String goodsName, String goodsCode, String providerNumber, Long warehouseId, String unit, Long sock, Double price, String remark, Integer status) {
        this.id = id;
        this.goodsNumber = goodsNumber;
        this.goodsName = goodsName;
        this.goodsCode = goodsCode;
        this.providerNumber = providerNumber;
        this.warehouseId = warehouseId;
        this.unit = unit;
        this.sock = sock;
        this.price = price;
        this.remark = remark;
        this.status = status;
    }

    public Goods() {
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsNumber='" + goodsNumber + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsCode='" + goodsCode + '\'' +
                ", providerNumber='" + providerNumber + '\'' +
                ", warehouseId=" + warehouseId +
                ", unit='" + unit + '\'' +
                ", sock=" + sock +
                ", price=" + price +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getProviderNumber() {
        return providerNumber;
    }

    public void setProviderNumber(String providerNumber) {
        this.providerNumber = providerNumber;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getSock() {
        return sock;
    }

    public void setSock(Long sock) {
        this.sock = sock;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
